﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Drawing.Imaging;

namespace ProjectStudy
{
    public partial class 验证码 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           

        }

        protected void btn1_Click(object sender, EventArgs e)
        {
            string strCaptcha = TextBox1.Text.ToUpper();
            if (strCaptcha.Equals(Session["LoginCaptcha"].ToString().ToUpper()))
            {
                Label1.Text = "验证成功";
                Label1.ForeColor = Color.Green;
            }
            else
            {
                Label1.Text = "验证失败";
                Label1.ForeColor = Color.Red;
            }
            
        }

        
    }
}